package br.com.vti.sisp_sicrim.entity.converter;

import br.com.caelum.vraptor.Convert;
import br.com.caelum.vraptor.Converter;
import br.com.caelum.vraptor.ioc.ApplicationScoped;
import br.com.crud4j.security.model.entity.converter.SexoEnumConverter;
import br.com.crud4j.security.model.entity.enums.Sexo;
import java.util.ResourceBundle;

/**
 *
 * @author ednardomatos
 */
@ApplicationScoped
@Convert(Sexo.class)
public class SexoConverter extends SexoEnumConverter implements Converter<Sexo> {

    @Override
    public Sexo convert(String value, Class<? extends Sexo> type, ResourceBundle rb) {
        return convertToEntityAttribute(value);
    }

}
